package edu.gatech.cc.hwa.server.features;

import edu.gatech.cc.hwa.server.Profile;

public class IpAddressFeature extends Feature {

	public IpAddressFeature(String rawData) {
		super(rawData);
	}

	@Override
	public boolean matchesProfile(Profile profile) {
		String ipRegex = profile.getIpAddress();
		return IpChecker.checkIp(getRawData(), ipRegex);
	}

}
